<!DOCTYPE HTML>
<html> 
<head> 
	<meta charset="utf-8"> 
	<title>Test case</title>
	<script src="sjax_0.3.js"></script>
</head> 
<body>

<div id="d1" style="width:200px;height:200px;background:gold;">
	<p id="p1">p1</p>
</div>

<script type="text/javascript">
	var url = 'jsonp.js';
	function fn(jsonp){
		alert(jsonp.name)
	}
	//var obj = new ScriptLoader(function(){alert('a')});
	//obj.load('http://code.jquery.com/jquery.min.js');
//	sjax.load('http://code.jquery.com/jquery.min0.js',{
//		success : function(a){
//			alert(a);
//		},
//		failure : function(){
//			alert('err');
//		}
//	});
	sjax.load(url, {
		success : fn,
		failure : function(){alert('err')},
		timestamp:false
	});
	
</script>


</body>
</html>

